/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app.visualizacao;

import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

/**
 *
 * @author comp1
 */
public class Requisicao extends javax.swing.JFrame {

    /**
     * Creates new form Requisicao
     */
    public Requisicao() {
        initComponents();
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
            SwingUtilities.updateComponentTreeUI(this);
        } catch (Exception erro) {
            JOptionPane.showMessageDialog(null, erro);
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel2 = new javax.swing.JLabel();
        tf_codigo = new javax.swing.JTextField();
        tf_setor = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        tf_emissao = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        jLabel5 = new javax.swing.JLabel();
        tf_cod_produto = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        tf_nome_produto = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        tf_quant = new javax.swing.JTextField();
        jSeparator3 = new javax.swing.JSeparator();
        bt_adicionar = new javax.swing.JButton();
        bt_excluir = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        bt_extodos = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N
        jLabel1.setText("Requisição");
        getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 25, -1, -1));
        getContentPane().add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 452, 10));

        jLabel2.setText("Codigo : ");
        getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 84, -1, -1));

        tf_codigo.setText(" ");
        getContentPane().add(tf_codigo, new org.netbeans.lib.awtextra.AbsoluteConstraints(57, 81, 66, -1));
        getContentPane().add(tf_setor, new org.netbeans.lib.awtextra.AbsoluteConstraints(391, 81, 64, -1));

        jLabel3.setText("Setor : ");
        getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(351, 84, -1, -1));

        tf_emissao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tf_emissaoActionPerformed(evt);
            }
        });
        getContentPane().add(tf_emissao, new org.netbeans.lib.awtextra.AbsoluteConstraints(241, 81, 100, -1));

        jLabel4.setText("Data de Emissão : ");
        getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(148, 84, -1, -1));
        getContentPane().add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 119, 452, 10));

        jLabel5.setText("Codigo do Produto : ");
        getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 138, -1, -1));
        getContentPane().add(tf_cod_produto, new org.netbeans.lib.awtextra.AbsoluteConstraints(113, 135, 68, -1));

        jLabel6.setText("Nome do Produto : ");
        getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 169, -1, -1));
        getContentPane().add(tf_nome_produto, new org.netbeans.lib.awtextra.AbsoluteConstraints(113, 166, 227, -1));

        jLabel7.setText("Quantidade : ");
        getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, -1, -1));
        getContentPane().add(tf_quant, new org.netbeans.lib.awtextra.AbsoluteConstraints(113, 197, 76, -1));
        getContentPane().add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 235, 452, 10));

        bt_adicionar.setText("Adicionar");
        getContentPane().add(bt_adicionar, new org.netbeans.lib.awtextra.AbsoluteConstraints(211, 251, -1, -1));

        bt_excluir.setText("Excluir");
        getContentPane().add(bt_excluir, new org.netbeans.lib.awtextra.AbsoluteConstraints(298, 251, -1, -1));

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Codigo", "Descrição", "Quantidade"
            }
        ));
        jScrollPane1.setViewportView(jTable1);

        getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 292, -1, 213));

        bt_extodos.setText("Excluir Todos");
        getContentPane().add(bt_extodos, new org.netbeans.lib.awtextra.AbsoluteConstraints(367, 251, -1, -1));

        jButton1.setText("Cancelar");
        getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(387, 516, -1, -1));

        jButton2.setText("Salvar");
        getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(318, 516, -1, -1));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tf_emissaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tf_emissaoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tf_emissaoActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Requisicao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Requisicao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Requisicao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Requisicao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Requisicao().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bt_adicionar;
    private javax.swing.JButton bt_excluir;
    private javax.swing.JButton bt_extodos;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JTable jTable1;
    private javax.swing.JTextField tf_cod_produto;
    private javax.swing.JTextField tf_codigo;
    private javax.swing.JTextField tf_emissao;
    private javax.swing.JTextField tf_nome_produto;
    private javax.swing.JTextField tf_quant;
    private javax.swing.JTextField tf_setor;
    // End of variables declaration//GEN-END:variables
}
